<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    
    <!-- Parent POM -->
    <parent>
        <groupId>org.gephi</groupId>
        <artifactId>gephi-parent</artifactId>
        <version>0.9.1</version>
        <relativePath>../..</relativePath>
    </parent>

    <artifactId>gephi-branding</artifactId>
    <packaging>nbm</packaging>
    <name>Branding</name>

    <build>
        <plugins>
            <!-- Copy and filtering tasks -->
            <plugin> 
                <artifactId>maven-resources-plugin</artifactId> 
                <executions> 
                    <!-- Copy and replace %{gephi.app.version} variable in two Bundle.properties file that contains the application title -->
                    <execution> 
                        <id>generate-bundles</id> 
                        <phase>generate-resources</phase> 
                        <goals> 
                            <goal>copy-resources</goal> 
                        </goals> 
                        <configuration> 
                            <outputDirectory>src/main/nbm-branding</outputDirectory> 
                            <resources> 
                                <resource> 
                                    <directory>src/main/resources</directory> 
                                    <includes> 
                                        <include>core/core.jar/org/netbeans/core/startup/Bundle.properties</include>
                                        <include>modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties</include>
                                    </includes> 
                                    <filtering>true</filtering> 
                                </resource> 
                            </resources> 
                        </configuration> 
                    </execution> 
                    
                    <execution> 
                        <id>generate-autoudate-urls</id> 
                        <phase>generate-resources</phase> 
                        <goals> 
                            <goal>copy-resources</goal> 
                        </goals> 
                        <configuration>
                            <outputDirectory>${basedir}/target/classes</outputDirectory> 
                            <resources> 
                                <resource> 
                                    <directory>src/main/resources</directory> 
                                    <includes> 
                                        <include>org/gephi/branding/Bundle.properties</include>
                                    </includes> 
                                    <filtering>true</filtering> 
                                </resource> 
                            </resources> 
                        </configuration> 
                    </execution> 
                </executions> 
            </plugin>
        </plugins>
    </build>
</project>
